<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>算术运算符</title>
</head>

<body>
  <script>
    // 算数运算符
    console.log(1 + 2 * 3);
    let num = 10
    console.log(num + 10);
    console.log(num * 10);
    console.log('________');
    // 1.取模(取余数)  使用尝尽 用来判断某个数据是否被整除
    console.log(4 % 2);
    console.log(2 % 4);
    console.log(11 % 13);
    console.log(13 % 11);
    console.log(100 % 101);

    console.log('xpp' - 2);   //输出NaN
    console.log('xpp' + 6);    //表示字符串拼接
    console.log('xpp' + 'lala');
    console.log(undefined + 2)





  </script>
</body>

</html>